package com.haiyou.data.sdk.account.log;

import com.haiyou.common.jdbc.DbType;
import com.haiyou.data.common.persister.mysql.annotation.Comment;
import com.haiyou.data.common.persister.mysql.annotation.Database;
import com.haiyou.data.common.persister.mysql.annotation.Id;
import com.haiyou.data.common.persister.mysql.annotation.Table;
import com.haiyou.data.common.persister.mysql.annotation.Table.RollPolicy;
import com.haiyou.data.common.persister.mysql.persister.delay.DelayEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * 登录日志
 */
@ToString
@Setter
@Getter
@Database(alias = DbType.LOG_DB)
@Table(name = "t_log_login", rollPolicy = RollPolicy.EVERY_DAY, comment = @Comment("登录日志"),sqlBatchNum = 400,columnDropable = true)
public class LoginLog extends DelayEntity<Long> {

	@Id(autoIncr = true)
	private Long id;

	@Comment("玩家id")
	private long playerId;

	@Comment("服务器id")
	private int serverId;

}
